package com.zhanghao.sdk.ui;

import android.content.Context;

import com.zhanghao.sdk.base.BaseDialog;
import com.zhanghao.sdk.constant.ENUM_DIALOG;
import com.zhanghao.sdk.ui.dialog.CustomDialog;
import com.zhanghao.sdk.ui.dialog.FindPwdDialog;
import com.zhanghao.sdk.ui.dialog.LoginDialog;

public class UiFactory implements IUiFactory {
    @Override
    public BaseDialog getDialog(Context context, ENUM_DIALOG enumDialog) {
        switch (enumDialog){
            case LOGIN:
                return new LoginDialog(context);
            case CUSTOM:
                return new CustomDialog(context);
            case FIND:
                return new FindPwdDialog(context);
        }
        return null;
    }
}
